package com.example.demo.service;


import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest
public class NanawalletServerApplicationTests {

    @Autowired
    private RedisService redisService;
    @Test
    public void contextLoads() {
    }
    @Test
    public void testInsertRedis(){
//        this.redisService.set("test_redis","123456");
        this.redisService.setnxByKey("test_nx","15266665544");
        System.out.println( this.redisService.get("test_nx"));
    }
}
